class BetterReg\Parser

Constants

Properties

  • public $functions = [];
  • protected $regex;

Methods

  • public function parse($regex) parse a regex string into an array
  • public function replace($function, $string)
  • protected function removeComments($reg)
  • protected function removePad($reg)
  • protected function addEscapedTrailingSpace($reg)
  • protected function implodeLines($reg)
  • protected function cleanLine($regLine) Each comment must start with # (space hash). Everything following in that line is comment and will be removed from output If your pattern uses #, escape it like \#

Static Properties

Static functions